﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp2
{

    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("请选择机器人 1、炒菜 2、传菜");
            string a = Console.ReadLine();
            xuanze(a);
        }
        public static Robot xuanze(string a)
        {
            Robot r;
            switch (a)
            {
                case "1":
                    r = new CookRobot("炒菜机器人", CookRobot.leixing.东坡肘子,  CookRobot.leixing.蒸熊掌 ,  CookRobot.leixing.麻婆豆腐  );
                    r.Working ();
                    break;
                case "2":
                    r = new DeliveryRobot("传菜机器人", "24");
                    r.Working();
                    break;
                default:
                    r = new CookRobot("炒菜机器人", CookRobot.leixing.东坡肘子, CookRobot.leixing.蒸熊掌, CookRobot.leixing.麻婆豆腐);
                    Console.WriteLine("认字吗NT？");
                    break;
            }
            return r;
        }
    }
}
